<?php

class vtcompiler extends tecler {
	
	function vtcompiler() {
		$this->tagStart = '{{';
		$this->tagEnd = '}}';
		$this->tagSplit = ':';
	}

	function _cdata( $code ){
		$str = ' print(\'' . addcslashes( $code, '\'' ) . '\');' ;
		return $str;
	}

	function vtcurrentdate(){
		$str = ' echo date( \'m/d/Y\' ); ';
		return $str;
	}

	function vtcurrenttime(){
		$str = ' echo date( \'g:i a\' ); ';
		return $str;
	}

	function vtget( $param ){
		$str = ' echo $vt[\'set\'][\'' . addcslashes( $param, '\'' ) . '\']; ';
		return $str;
	}

	function vtset( $param ){
		$str = ' vtset(\'' . addcslashes( $param, '\'' ) . '\'); ';
		return $str;
	}		
}

?>